package com.hcnow.common.config

import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.context.ApplicationListener
import org.springframework.context.event.ContextRefreshedEvent
import org.springframework.stereotype.Component

@Component
class InitializeApplication: ApplicationListener<ContextRefreshedEvent> {
    private var logger:Logger = LoggerFactory.getLogger(InitializeApplication::class.java);
    override fun onApplicationEvent(event: ContextRefreshedEvent?) {
        logger.info("system begin start....");
        logger.info("system start finished....")
    }
}